﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace Matriz_de_riscos
{
    public partial class FormMain : Form
    {
        private const string FORMAT_HORA_MINUTO_SEGUNDO = "hh:mm:ss";

        public FormMain()
        {
            InitializeComponent();
        }

        private void sairToolStripMenuItem_Click(object sender, EventArgs e)
        {
            this.Close();
        }

        private void timer_Tick(object sender, EventArgs e)
        {
            toolStripStatusLabelDisplayHora.Text = DateTime.Now.ToString(FORMAT_HORA_MINUTO_SEGUNDO);
        }

        private void criarMatrizToolStripMenuItem_Click(object sender, EventArgs e)
        {
            using (FormCriarMatriz formCriarMatriz = new FormCriarMatriz())
            {
                formCriarMatriz.ShowDialog();
            }
        }
    }
}
